@							SRLOS source code
@						SRLOS Team All Rights Reserved!
@@filename	kernel_asm_reset.s
@@author	boceanc.
@@date		2010/04/17
@@comment	this file is a asm file.It is used to handle RESET interrupts.
@			It supports nestable interrupt.In system all Mode of arm use
@			ARM 32 bits instruction.
@@note		more information see <interrupt desgin> doc.

@we should do some thing when reset the system.such as save files,close devices...and so on.
@when reset exception occured.ARM will automatically Disable all interrupts.So we try our
@best to keep interrupts disable.

@we call an function to do our things before reset!

.section .text
.global		g_interrupt_reset
.extern		k_os_start					@system reset funciton
.arm
g_interrupt_reset:
			B k_os_start				@call functions

@now, we should close MMU.and reset PC!
			@CLOSE MMU					@ close MMU, on reset, MMU will automatically closed
			EOR R0, R0, R0				@ make value 0x0
			MOV PC, R0					@ 0x0 or other values depend on ....
